import Vue from 'vue'
import Vuex from 'vuex'
import dict from './modules/dict'
import message from './modules/message'
import themeState from './modules/theme'
import payment from './modules/payment'
import user from './modules/user'

Vue.use(Vuex)

const store = new Vuex.Store({
	modules: {
		dict,message,themeState, payment, user
	},
	getters: {
		theme:(state) => state.themeState.theme,
		userInfo:(state) => state.user.userInfo,
	}
})

export default store
